package com.hzp.dcruitmentpd.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;



import com.baomidou.mybatisplus.annotations.Version;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author Hzp
 * @since 2020-03-25
 */
@Data
@Accessors(chain = true)
public class User extends Model<User> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "uid", type = IdType.AUTO)
    private Integer uid;

    private String name;

    private String username;

    private String password;

    private String email;

    /**
     * 现居
     */
    private Integer nid;

    private Integer age;

    private Integer sex;

    /**
     * 工作经验
     */
    private String workExperience;

    /**
     * 学历
     */
    private String educationBackground;

    private String phone;


    @Override
    protected Serializable pkVal() {
        return this.uid;
    }

}
